package ${packageName}.service;


import ${packageName}.bean.Pager;
import ${packageName}.dto.request.${entity}PagerRequest;
import ${packageName}.entity.${entity};

public interface ${entity}Service {

    /**
     * 分页查询
     * @param request
     * @return
     */
    Pager<${entity}> find(${entity}PagerRequest request);

    /**
     * 分页查询
     * @param id
     * @return
     */
    ${entity} get(Long id);

    /**
     * 新增
     * @param ${entityLowerCase}
     * @return
     */
    int add(${entity} ${entityLowerCase});

    /**
     * 更新
     * @param ${entityLowerCase}
     */
    void update(${entity} ${entityLowerCase});

    /**
     * 删除
     * @param id
     */
    void delete(Long id);



}
